public class Test {
    public void fun(){
        Test2 test2 = new Test2();
        test2.fun2();
    }
    class Test2{
        public void fun2(){
            fun();
        }
    }

    public static void main(String[] args) {
        Test.Test2 test2 = new Test().new Test2();
    }
}




